package top.ljlgithub.api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import top.ljlgithub.api.bean.Order;
import top.ljlgithub.api.bean.OrderGood;
import top.ljlgithub.api.bean.OrderGoods;

import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/5/7 16:26
 * @Version 1.0
 **/
@Mapper
@Component
public interface OrderMapper {
    List<Order> getOrderList(String query,Integer startIndex,Integer pagesize);
    Integer getTotal(String query);
    OrderGoods findOrderById(Integer id);
    List<OrderGood> getOrderGoodList(Integer id);
    void updateOrder(Order order);
}
